package behavioral_pattern.Interpreter_pattern;

/**
 * 解释器模式
 */
public class MainInterpreter {
    public static void main(String[] args) {
          String instruction = "up move 5 and down run 10 and left move 5";
          InstructionHandler handler = new InstructionHandler();
          handler.handle(instruction);
          String outString;
          outString = handler.output();
        System.out.println(outString);
    }
}
